package com.appcan.sync.common;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.alibaba.fastjson.JSON;
import com.appcan.base.BoClient;
import com.appcan.sync.allotorder.AllotBo;
import com.appcan.sync.generalbill.GeneralBo;
import com.appcan.sync.special.SpecialBo;



public class WechatBizSrv extends HttpServlet {

	private static final long serialVersionUID = 1L;
	
	private static final Log log = LogFactory.getLog(WechatBizSrv.class);
	
	public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
		doGet(request, response);
	}

	public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
		GeneralBo bo = (GeneralBo) BoClient.getClient("ufida", "GeneralBean");
		System.out.println(JSON.toJSONString(bo.quteryData("sada")));
		AllotBo bo1 = (AllotBo) BoClient.getClient("ufida", "AllotBean");
		System.out.println(JSON.toJSONString(bo1.quteryData("sada")));
		SpecialBo bo2 = (SpecialBo) BoClient.getClient("ufida", "SpecialBean");
		System.out.println(JSON.toJSONString(bo2.quteryData("sada")));
		
	}
	
}
